cmake_minimum_required(VERSION 3.9)
project(onnx2ncnn)

set(CMAKE_CXX_STANDARD 11)

set(PROTOBUF_INCLUDE /usr/local/include)
set(PROTOBUF_LIB /usr/local/lib)

include_directories(${PROTOBUF_INCLUDE})
link_directories(${PROTOBUF_LIB})

add_executable(onnx2ncnn onnx2ncnn.cpp onnx.pb.cc)
target_link_libraries(onnx2ncnn protobuf protobuf-lite protoc)